

// mobx 数据
import {observable,computed,action,toJS } from "mobx"
class MobxData{
    @observable userinfo = {}
    @observable annoList = []
    @action changeuserinfo = payload =>{
        this.userinfo={...toJS(this.userinfo),...payload}
    }
    @action resetuserinfo = () =>{
        this.userinfo = {}
    }
    @action changeannoList = payload =>{
        this.annoList=payload
    }
}
export default new MobxData()
 